import fetch from "./fetch";


// 创建群聊
export const createGroup = (data) => fetch({
  url: "/group/createGroup",
  method: "post",
  data
})


// 修改 个人在群内的昵称
export const editGroupPersonName = (data) => fetch({
  url: "/group/editChatNickName",
  data,
  method: "POST"
})



// 通过卡片获取群的详情
export const getGroupDetailByCard = (data) => fetch({
  url: '/group/clickGroupCard',
  method: "post",
  data
})


//Z设置群置顶状态
export const setGroupTopState = (data) => fetch({
  url: "/group/editTop",
  data,
  method: "post"
})


// 好友消息免打扰
export const setGroupDisturb = (data) => fetch({
  url: "/group/editDisturb",
  data,
  method: "post"
})